home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.compilers / comp.sys.amiga.programmer_5289_000016.msg < prev    next >
Encoding:
Text File  |  1994-11-27  |  2.4 KB  |  62 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: dd.chalmers.se!news.chalmers.se!sunic!EU.net!howland.reston.ans.net!europa.eng.gtefsd.com!emory!news-feed-1.peachnet.edu!concert!sas!mozart.unx.sas.com!wonka.unx.sas.com!sassek
  3. From: sassek@wonka.unx.sas.com (Steve Krueger)
  4. Subject: Re: SAS/C debugger good or not???
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <CKJx1x.EL4@unx.sas.com>
  7. Date: Tue, 1 Feb 1994 15:15:32 GMT
  8. References: <Richard_Johnson.0ixi@eaglesnest.albedo.com> <harry.064a@elfuerte.fipnet.fi>
  9. Nntp-Posting-Host: wonka.unx.sas.com
  10. Organization: SAS Institute Inc.
  11. Lines: 49
  12.  
  13. In article <harry.064a@elfuerte.fipnet.fi> harry@elfuerte.fipnet.fi (Harri Pesonen) writes:
  14. >Richard Johnson (Richard_Johnson@eaglesnest.albedo.com) wrote:
  15. >
  16. >Yes.  CPR would be much better if it had the following features:
  17. >
  18. >o  automatic display of the function arguments and local variables
  19.  
  20. CPR can display all the function arguments with the ARGS command.
  21.  
  22.  
  23. >o  ability to display a given function in the source window
  24.  
  25. CPR has this ability with the SHOW command. I just checked the doc,
  26. and it's not in there, I don't know why it got left out. Anyway,
  27. heres the syntax:
  28.  
  29.  SHOW [\module\][function] [line_number]
  30.  
  31. Here's some examples:
  32.  
  33.  show main
  34.  show \test.c
  35.  show \test.c\main 10
  36.  show 50
  37.  
  38. >o  ability to display external variables and structures, even if the
  39.     variable is not defined in the current module
  40.  
  41. This was a design implementation decision. CPR is able to display anything
  42. that the C program is able to access in a given module. If we made it
  43. search the entire EXE, you might get a very long delay if you misspelled
  44. the name of the variable you were trying to display. You can display
  45. a variable in another module with full debug info, if you give a context
  46. to search in. For example
  47.  
  48. display \test.c\foo\a
  49.  
  50. will go to module test.c, function foo, and start the search for variable 'a'.
  51. If 'a' is a global variable in that module, CPR will diplay it.
  52.  
  53. >o  automatic breakpoint save and restore
  54.  
  55. You can do this now with the bd and be commands (break disable and break enable).
  56. Just set the breakpoint normal. Use BD to turn it off, and BE to turn it
  57. back on. The same functionality exists for watch breaks.
  58.  
  59. >o  ability to watch a pointer as a zero terminated string
  60.  
  61. That would be nice. There is no way to do this currently.
  62.